<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<script type="text/javascript" src="${ctx}/scripts/jquery.pagination.js"></script> 
<script type="text/javascript" src="${ctx}/scripts/jquery-1.4.2.min.js"></script> 
<title>北京车辆段</title>
<link href="${ctx}/css/printnews.css" rel="stylesheet" type="text/css" /> 
<link href="${ctx}/scripts/pagination.css" rel="stylesheet" type="text/css" /> 
<script type="text/javascript">

               $(document).ready(function() { 	            
               $.get("${ctx}/web/Web/showAjaxNews.do", {
                   Action:"get",newsid:"<%=request.getParameter("newsid")%>"}, function (data, textStatus){	                                
                   var objs = eval("["+data+"]");                         
      		      
                   $('#nr_title').html('<h1>'+objs[0].newstitle+'</h1><p>'+objs[0].newscreatetime+'</p>');
                   $("#newscontent").html('<p>&nbsp;&nbsp;&nbsp;&nbsp;'+objs[0].newscontent+'</p>');
                   window.print();             
               });		
          }); 	 
			
	</script>
</head>

<body>
<div class="box">
    <div class="content">
    	 
        <div id="nr_title" class="nr_title"  >
        	<h1 id="newtitile" ></h1>
            <p id ="newscreatetime"></p>
        </div>
        <div id ="newscontent">
        	<p>news content</p>
        </div>      
        <div class="clear"></div>
    </div>
    <div class="footer"><ul>Copyright ©2011-2012 北京车辆段 版权所有</ul>
								信息技术科 联系电话：010-51868237</div>
</div>
</body>
</html>